#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
:FileName: chat.py
:Project:
:Brand:
:Version:
:Description: 
:Author: He YinYu
:Link:
:Time: 2025/4/30 17:40
"""
from .base import BaseModel
from tortoise import fields

__all__ = [
    "ChatV0Model"
]

class ChatV0Model(BaseModel):
    chat_id = fields.UUIDField(
        primary_key=True,
        description="对话ID"
    )
    session_id = fields.UUIDField(
        description="会话ID"
    )
    user = fields.CharField(
        max_length=255,
        description="用户名",
    )
    message_list = fields.JSONField(
        description="对话列表"
    )

    class Meta:
        table = "chat_v0"



